package com.teamall.web.fpxm.db.po;

import java.util.Date;

import com.teamall.framework.util.Utils;
import org.apache.commons.lang.StringUtils;

import com.teamall.framework.dto.AbstractDto;
import org.apache.commons.net.io.Util;

public class AidProjectProgressPO extends AbstractDto {
    private Integer projectProgress;
    private Integer projectId;
    private Integer month;
    private Integer periodOfMonth;
    private Date createDate;
    private Integer staffId;
    private String content;
    private String photoList;
    private String[] photoArray;

    public String[] getPhotoArray() {
        if (Utils.isEmpty(this.getPhotoList())) {
            return new String[0];
        } else {
            return  photoList.split(",");
        }
    }

    public Integer getProjectProgress() {
        return projectProgress;
    }

    public void setProjectProgress(Integer projectProgress) {
        this.projectProgress = projectProgress;
    }


    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }


    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }


    public Integer getPeriodOfMonth() {
        return periodOfMonth;
    }

    public void setPeriodOfMonth(Integer periodOfMonth) {
        this.periodOfMonth = periodOfMonth;
    }


    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }


    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }


    public String getContent() {
        return StringUtils.isBlank(content) ? content : content.trim();
    }

    public void setContent(String content) {
        this.content = content;
    }


    public String getPhotoList() {
        return StringUtils.isBlank(photoList) ? photoList : photoList.trim();
    }

    public void setPhotoList(String photoList) {
        this.photoList = photoList;
    }


}